﻿<!DOCTYPE html>
<html lang="zh-cn">
    
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>
            省钱啦
        </title>
        <meta name="keywords" content="{$seo_keywords}" />
        <meta name="description" content="{$seo_description}" />
        <meta name="applicable-device" content="pc,mobile">
        <link rel="stylesheet" type="text/css" href="__CSS__/bootstrap.css">
        <link rel="stylesheet" type="text/css" href="__CSS__/glide.css">
        <link rel="stylesheet" type="text/css" href="__CSS__/style.css">
        <script src="__JS__/jquery.min.js" type="text/javascript">
        </script>
        <script src="__JS__/jquery.glide.js" type="text/javascript">
        </script>
        <script src="__JS__/bootstrap.js" type="text/javascript">
        </script>
        <!--[if lt IE 9]>
            <script src="__JS__/html5shiv.min.js" type="text/javascript">
            </script>
            <script src="__JS__/respond.min.js" type="text/javascript">
            </script>
        <![endif]-->
        <link rel="stylesheet" type="text/css" href="__CSS__/lightbox.css">
        <script src="__JS__/lightbox.js" type="text/javascript">
        </script>
    </head>
    <header>
        <header>
            <div class="topBox">
                <div class="borderBottom">
                    <div class="container">
                        <div class="row">
                            <div class="welcomeBox">
                                欢迎光临{$site_name}
                            </div>
                            <div class="topContactBox">
                                <img src="__CSS__/tel.png" />
                                <a>
                                    {$site_telephone}
                                </a>
                                <img src="__CSS__/mail.png" />
                                <a>
                                    {$site_email}
                                </a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- Fixed navbar -->
            <nav class="navbar navbar-static-top navbar-default">
                <div class="container">
                    <div class="navbar-header">
                        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                        data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                            <span class="sr-only">
                                Toggle navigation
                            </span>
                            <span class="icon-bar">
                            </span>
                            <span class="icon-bar">
                            </span>
                            <span class="icon-bar">
                            </span>
                        </button>
                        <a class="navbar-brand" href="/">
                            <img src="{$site_logo}" alt="{$site_name}" />
                        </a>
                    </div>
                    <div id="navbar" class="navbar-collapse collapse">
                        <ul class="nav navbar-nav">
                            <li>
                                <a href="/">
                                    网站首页
                                </a>
                            </li>
                            <Gr:cat catid="0" id="r">
                                <li class="dropdown">
                                    {if $max_parent_catid==$r['id'] || $catid==$r['id']}
                                    <a href="{$r.url}" target="_self" class="dropdown-toggle selecteded" data-toggle="dropdown">
                                        {$r.catname}
                                    </a>
                                    <a href="#" id="app_menudown" class="dropdown-toggle" data-toggle="dropdown"
                                    role="button" aria-expanded="false">
                                        <span class="glyphicon glyphicon-menu-down btn-xs">
                                        </span>
                                    </a>
                                    {else}
                                    <a href="{$r.url}" target="_self" class="dropdown-toggle" data-toggle="dropdown">
                                        {$r.catname}
                                    </a>
                                    <a href="#" id="app_menudown" class="dropdown-toggle" data-toggle="dropdown"
                                    role="button" aria-expanded="false">
                                        <span class="glyphicon glyphicon-menu-down btn-xs">
                                        </span>
                                    </a>
                                    {/if} {if $r['child']=="1"}
                                    <ul class="dropdown-menu" role="menu">
                                        <Gr:cat catid="$r['id']" id="rr">
                                            <li>
                                                <a class='' target='_self' href="{$rr.url}">
                                                    {$rr.catname}
                                                </a>
                                            </li>
                                        </Gr:cat>
                                    </ul>
                                    {/if}
                                </li>
                            </Gr:cat>
                        </ul>
                    </div>
                    <!--/.nav-collapse -->
                </div>
            </nav>
        </header>
        {if !empty($isIndex)}
        <include file="Public:slide" />
        {else}
        <div class="banner">
            <div class="slider">
                <ul class="slider__wrapper">
                    <li class="slider__item">
                        <a target="_self" title="2" href="#" style="background-image:url({if $Cats[$max_parent_catid]['image']}
                        {$Cats[$max_parent_catid]['image']}{else}{$Cats[$catid]['image']}
                        {/if})">
                            <img class='img' src="{if $Cats[$max_parent_catid]['image']}
                            {$Cats[$max_parent_catid]['image']}{else}{$Cats[$catid]['image']}
                            {/if}" />
                            <img class='mobileimg' src="{if $Cats[$max_parent_catid]['image']}
                            {$Cats[$max_parent_catid]['image']}{else}{$Cats[$catid]['image']}
                            {/if}" />
                        </a>
                    </li>
                </ul>
            </div>
        </div>
        {/if}